package com.ruoyi.animal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 动物健康检测对象 health_checkup
 * 
 * @author gw
 * @date 2025-01-06
 */
public class HealthCheckup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 健康检查ID */
    private Long checkupId;

    /** 动物ID */
    @Excel(name = "动物ID")
    private Long animalId;

    //动物编号
    private String animalNumber;

    /** 检查日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkupDate;

    /** 健康状态 */
    @Excel(name = "健康状态")
    private Integer healthStatus;

    /** 动物体重（单位：kg） */
    @Excel(name = "动物体重", readConverterExp = "单=位：kg")
    private Long weight;

    /** 动物体温（单位：℃） */
    @Excel(name = "动物体温", readConverterExp = "单=位：℃")
    private Long temperature;

    /** 心率（单位：次/分钟） */
    @Excel(name = "心率", readConverterExp = "单=位：次/分钟")
    private Long heartRate;

    /** 呼吸频率（单位：次/分钟） */
    @Excel(name = "呼吸频率", readConverterExp = "单=位：次/分钟")
    private Long respiratoryRate;

    /** 检查备注 */
    @Excel(name = "检查备注")
    private String notes;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    /** 版本号，用于乐观锁控制 */
    private Integer version;

    public String getAnimalNumber() {
        return animalNumber;
    }

    public void setAnimalNumber(String animalNumber) {
        this.animalNumber = animalNumber;
    }

    public void setCheckupId(Long checkupId)
    {
        this.checkupId = checkupId;
    }

    public Long getCheckupId() 
    {
        return checkupId;
    }
    public void setAnimalId(Long animalId) 
    {
        this.animalId = animalId;
    }

    public Long getAnimalId() 
    {
        return animalId;
    }
    public void setCheckupDate(Date checkupDate) 
    {
        this.checkupDate = checkupDate;
    }

    public Date getCheckupDate() 
    {
        return checkupDate;
    }
    public void setHealthStatus(Integer healthStatus) 
    {
        this.healthStatus = healthStatus;
    }

    public Integer getHealthStatus() 
    {
        return healthStatus;
    }
    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }
    public void setTemperature(Long temperature) 
    {
        this.temperature = temperature;
    }

    public Long getTemperature() 
    {
        return temperature;
    }
    public void setHeartRate(Long heartRate) 
    {
        this.heartRate = heartRate;
    }

    public Long getHeartRate() 
    {
        return heartRate;
    }
    public void setRespiratoryRate(Long respiratoryRate) 
    {
        this.respiratoryRate = respiratoryRate;
    }

    public Long getRespiratoryRate() 
    {
        return respiratoryRate;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("checkupId", getCheckupId())
            .append("animalId", getAnimalId())
            .append("checkupDate", getCheckupDate())
            .append("healthStatus", getHealthStatus())
            .append("weight", getWeight())
            .append("temperature", getTemperature())
            .append("heartRate", getHeartRate())
            .append("respiratoryRate", getRespiratoryRate())
            .append("notes", getNotes())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .toString();
    }
}
